
$.extend($.fn.validatebox.defaults.rules, {
    /*必须和某个字段相等*/
    equalTo: {
        validator:function(value,param){
            return $(param[0]).val() == value;
        },
        message:'密码必须一致'
    }
});







    function save() {
        $("#personMsg").form('submit', {
            url: "/employee/changeByPassword",

            success: function(data){
                data = $.parseJSON(data);

                var updateSuccess = data.success;
                if(updateSuccess){
                    $.messager.alert('Warning','修改成功');
                }else{
                    $.messager.alert('Warning','修改失败');
                }
            }

        })
    }




